package com.jindun.paper.ui.handler;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.PlatformUI;

import com.jindun.paper.ui.client.ClientListView;

public class RefreshClientListHandler extends AbstractHandler {

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		ClientListView clientListView = (ClientListView)PlatformUI.getWorkbench()
				.getActiveWorkbenchWindow().getActivePage().findView("clientListView");
		clientListView.refresh();
		return null;
	}

}
